package com.bt.dao;


import com.bt.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {
    //登录功能-用户名和密码
    @Select("select * from m_user where name=#{name} and password=#{password}")
    User login(@Param("name") String name, @Param("password")String password);
}
